﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrabFieldr.Models.Impls.Tools
{
    public class PropertyChangedEventArgs : EventArgs
    {
        /// <summary>
        /// 发生变化的属性名
        /// </summary>
        public string PropertyName { get; }
        /// <summary>
        /// 属性改变前的值
        /// </summary>
        public object OldValue { get; }
        /// <summary>
        /// 属性改变后的新值
        /// </summary>
        public object NewValue { get; }

        public PropertyChangedEventArgs(string propertyName, object oldValue, object newValue)
        {
            PropertyName = propertyName;
            OldValue = oldValue;
            NewValue = newValue;
        }
    }
}
